<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css"></link>
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen"></link>
<link href="css/sticky-footer-navbar.css" rel="stylesheet"> </link>
<link href="css/custom.css" rel="stylesheet"> </link>
<link rel="stylesheet" href="signin.css"> </link>
<link rel="stylesheet" href="css/bootstrap.css" />
<link rel="stylesheet" href="css/bootstrap-responsive.css" />
<link rel="stylesheet" href="css/custom.css" />
<link rel="shortcut icon" href="<?php echo base_url().'images/logo.png';?>" />


<title>Ecoopratio</title>

</head>
<body>

<div class="container ">

	<div class="row ">


<legend>Personal Home Page </legend>
<?php
$id_usergroup = $this->session->userdata('id_usergroup'); 
$flashmessage = $this->session->flashdata('message');
	echo ! empty($flashmessage) ? '<p class="message">' . $flashmessage . '</p>': ''; ?>
<div id="user_logged" >
	<table width="300"  border="1" bordercolor="#000000" id="tabel_logged">
	  <tr>
		<th width="100" scope="row">Nama User</th>
		<td width="200">
		<?php echo $this->session->userdata('user_name');  ?> </a></td>
	  </tr>
	  <tr>
		<th scope="row">Grup User</th>
		<td><?php echo $this->session->userdata('usergroup'); ?></td>
	  </tr>
	  <tr>
		<th scope="row">Cabang</th>
		<td><?php echo $this->session->userdata('cabang');  
		if($id_usergroup == 1 || $id_usergroup == 6){
			echo " ".anchor('cabang/update/'.$this->session->userdata('id_cabang'),'Edit Info',array('class' => 'update')); 
		}?></td>
	  </tr>
	  <tr>
		<th scope="row">Login Date</th>
		<td><?php echo $this->session->userdata('login_date');  ?></td>
	  </tr>
	  <tr>
		<th scope="row">Login Time</th>
		<td><?php echo $this->session->userdata('login_time');  ?></td>
	  </tr>
	</table>
</div>
</div>
</div>
</body>